package top.healthylife.gateway.platform.eye.dto.jingyingxinxi.EyeReqTaxpayerDto.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import top.healthylife.gateway.dto.annotation.ApiField;
import top.healthylife.gateway.dto.processor.GroupOneMustBeFilledInProcessor;
import top.healthylife.gateway.dto.request.req.ApiReqDto;

import javax.validation.constraints.NotNull;

/**
* @author: GenUtil
* @date: 2020-12-14 21:02:50
*/
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel("一般纳税人[1048]")
public class EyeReqTaxpayerDto extends ApiReqDto {

    @ApiField("每页条数（默认20，最大20）")
    @JsonProperty("pageSize")
    @ApiModelProperty(name = "每页条数（默认20，最大20）", example = "20")
    private Integer pageSize = 20;

    @ApiField(value = "（id、name、统一信用代码，只需输入其中一个）", group = GroupOneMustBeFilledInProcessor.class)
    @NotNull(message = "（id、name、统一信用代码，只需输入其中一个）")
    @JsonProperty("keyword")
    @ApiModelProperty(name = "（id、name、统一信用代码，只需输入其中一个）", example = "北京一点网聚科技有限公司")
    private String keyword;

    @ApiField("当前页（默认1，最大500）")
    @JsonProperty("pageNum")
    @ApiModelProperty(name = "当前页（默认1，最大500）", example = "1")
    private Integer pageNum = 1;

}
